package com.aizuda.boot.modules.business.contract.entity.dto;

import com.aizuda.boot.modules.common.constant.enums.CcTargetSource;
import com.aizuda.boot.modules.common.constant.enums.CcTriggerTimeEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Map;

/**
 * @Author sangyirong
 * @ClassName WorkflowNodeCcConfigDTO
 * @Version 1.0
 * @Date 2025/5/22 15:45
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "合同流程节点抄送人配置")
public class WorkflowNodeCcConfigDTO {

    @Schema(description = "抄送时机（进入节点时和离开节点时）")
    private CcTriggerTimeEnum ccTriggerTime;

    @Schema(description = "抄送目标来源（指定人员、指定角色、上级、部门负责人、表单内人员）")
    private CcTargetSource ccTargetSource;

    @Schema(description = "抄送目标来源配置 (如用户/角色ID，表单字段名，这块配置建议用 json 存储)")
    private Map<String,Object> ccTargetSourceConfigMap;
}
